﻿using NodeBasedSkillEditor.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.Model.CommandHistory
{
    public class Cmd_CreateLink : CommandRecord
    {
        public override ECommandType CmdType => ECommandType.CreateLink;

        public uint FromPortId;
        public uint ToPortId;
        public Record_SubPort NewSubPort;
        public List<(uint, uint)> ReplacedLinks;

        public Cmd_CreateLink(uint fromPortId, uint toPortId, Record_SubPort newSubPort, List<(uint, uint)> replacedLinks)
        {
            FromPortId = fromPortId;
            ToPortId = toPortId;
            NewSubPort = newSubPort;
            ReplacedLinks = replacedLinks;
        }
    }
}
